<section>
    <div class="panel panel-default">
        <div class="panel-heading clearfix form-inline">
            <div class="pull-right">
                商品列表
                <div class="form-group">
                    <select class="form-control" ng-model="category1" ng-options="m.categoryId as m.name for m in listData" ng-change="list2()">
                        <option value="">-- 请选择商品分类 --</option>
                    </select>
                </div>
                <div class="form-group" ng-if="listData2.length>0">
                    <select class="form-control" ng-model="parm.categoryId" ng-options="m.categoryId as m.name for m in listData2">
                        <option value="">-- 请选择商品二级分类 --</option>
                    </select>
                </div>
                <input type="text" ng-model="parm.name_like" class="form-control">
                <button type="button" class="btn btn-default" ng-click="submit(1)">搜索</button>
            </div>
        </div>
        <table class="table table-bordered panel-body table-condensed ">
            <thead>
            <tr>
                <th width="5%">#</th>
                <th width="20%">菜名</th>
                <th width="10%">描述</th>
            </tr>
            </thead>
            <tbody>
                <tr ng-repeat="item in commodityList" ng-click="chose(item.commodityId,item.name,item.outPrice)">
                    <td>
                        {{item.commodityId}}
                    </td>
                    <td>
                        {{item.name}}
                    </td>
                    <td>
                        {{item.descr}}
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="panel-footer text-center">
            <uib-pagination style="margin:0;" ng-change="submit(parm.currentPage)" total-items="parm.totalSize" ng-model="parm.currentPage"
                            items-per-page="parm.pageSize" max-size="5" class="pagination-sm" boundary-links="true"
                            rotate="false"></uib-pagination>
        </div>
    </div>



</section>
